using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

public class PointTrigger : MonoBehaviour
{

    //Scripts
    public Player player;
    public Basket basket;
    public Basket basket2;
    private SecondaryTrigger secondaryTrigger;
    public bool IsTriggered = false;

    void Start()
    {
        player = GameObject.FindGameObjectWithTag("Player").GetComponent<Player>();
        basket = GetComponentInParent<Basket>();
    }

    void OnTriggerEnter2D(Collider2D other)
    {
        if (other.gameObject.tag == "Player") 
        {
            IsTriggered = true;
        }
    }
    void OnTriggerExit2D(Collider2D other)
    {
        if (other.gameObject.tag == "Player") 
        {
            IsTriggered = false;
        }
    }

}